package com.itlnn.xfeng.commonview.penengine;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.itlnn.xfeng.commonview.R;
import com.itlnn.xfeng.painviw.PainView2;

/**
 * Created by xfeng on 2017/3/15.
 */

public class PainViewActivity extends AppCompatActivity {

    private PainView2 p2 ;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_painview);
        p2 = (PainView2) findViewById(R.id.painview2);
    }

    public void click(View view){
        switch (view.getId()){
            case R.id.pen:

                break;
            case R.id.rubber:
                p2.setStyle4Rubber();
                break;
            default:
                break;
        }
    }
}
